import { createApp } from 'vue'
import App from '@/App.vue'
// Element
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
//SVG相关
import 'virtual:svg-icons-register'
// 自定义插件对象
import globalComponent from '@/components'
//SCSS
import '@/styles/index.scss'
//路由
import router from './router'
//pinia
import pinia from './store'

import './permission'

const app = createApp(App)

app.use(ElementPlus, {
  locale: zhCn,
})

app.use(globalComponent)

app.use(router)

app.use(pinia)

app.mount('#app')